package com.stoken.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
public class MemberTowalletList implements Serializable {
	
//	towallet_amount	转出金额	double			NOT NULL
//	towallet_type	转账到的钱包类型	int		1－代币钱包
//	2－购物钱包	NOT NULL
//	towallet_time	转出时间	time			NOT NULL
//	wallet_remain	转出后电子钱包余额	double			NOT NULL
//	towallet_remark	备注	varchar	256		
//	towallet_spare	备用字段	varchar	256		
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY) 
	private long id;
	
	@ManyToOne
	@JoinColumn(name="base_username",nullable=false)
	private MemberBaseInfo baseUsername;
	
	@Column(nullable=false)
	private double towalletAmount;
	
	
	
	@Column(nullable=false)
	@Temporal(TemporalType.TIMESTAMP)
	private Date towalletTime; 
	
	@Column(nullable=false)
	private double walletRemain;
	
	private String towalletRemark;
	
	private String towalletSpare;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public MemberBaseInfo getBaseUsername() {
		return baseUsername;
	}

	public void setBaseUsername(MemberBaseInfo baseUsername) {
		this.baseUsername = baseUsername;
	}

	public double getTowalletAmount() {
		return towalletAmount;
	}

	public void setTowalletAmount(double towalletAmount) {
		this.towalletAmount = towalletAmount;
	}

	

	public Date getTowalletTime() {
		return towalletTime;
	}

	public void setTowalletTime(Date towalletTime) {
		this.towalletTime = towalletTime;
	}

	public double getWalletRemain() {
		return walletRemain;
	}

	public void setWalletRemain(double walletRemain) {
		this.walletRemain = walletRemain;
	}

	public String getTowalletRemark() {
		return towalletRemark;
	}

	public void setTowalletRemark(String towalletRemark) {
		this.towalletRemark = towalletRemark;
	}

	public String getTowalletSpare() {
		return towalletSpare;
	}

	public void setTowalletSpare(String towalletSpare) {
		this.towalletSpare = towalletSpare;
	}
	
	
}
